package com.online.study.model;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class PageParams {

  //当前页码默认值
  public static final int DEFAULT_PAGE_CURRENT = 1;
  //每页记录数默认值
  public static final int DEFAULT_PAGE_SIZE = 10;

  //当前页码
  private Integer pageNo = DEFAULT_PAGE_CURRENT;

  //每页记录数默认值
  private Integer pageSize = DEFAULT_PAGE_SIZE;

  public PageParams(){

  }

  public PageParams(int pageNo, int pageSize){
   this.pageNo = pageNo;
   this.pageSize = pageSize;
  }
}
